<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <base href="<%=basePath%>">
<title>系统提示</title> 

<script type="text/javascript"></script>
    <style type="text/css"> 
        body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
        div.dialog {
            width: 80%;
            padding: 1em 4em;
            margin: 4em auto 0 auto;
            border: 1px solid #ccc;
            border-right-color: #999;
            border-bottom-color: #999;
        }
        h1 { font-size: 200%;  line-height: 1.5em; }
    </style> 
</head> 
 
<body> 
  <div class="dialog"> 
  <c:if test="${title!=null}">
    	 <h1>${title }</h1>  
   </c:if>
   
    
    <c:if test="${errMsg!=null}">
    	<h2>${errMsg}</h2> 
    </c:if>
    
    <p>
    	<a href="" onclick="closeWindow()">关 闭</a> 
    </p> 
  </div>
  
  <script type="text/javascript">
  	function closeWindow(){
		if(window.opener != null){
			if(window.opener.document.btnRefresh != null){
				window.opener.btnRefresh.click();
				if(window.opener.queryByCondtion != null)
				{
				    window.opener.queryByCondtion(false);
			    }
			}
			else{
				window.close();
				if(window.opener.queryByCondtion != null)
				{
				    window.opener.queryByCondtion(false);
			    }
			}
		}
		window.close();
	}
  </script>
</body> 
</html>
